package com.example._003configtest.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Controller;

import java.text.DateFormat;

@Configuration
public class MyConfig {
    @Bean
    public DateFormat dateFormat(){
        return DateFormat.getDateInstance();
    }
}
